<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>附件列表</title>
	
<!-- 引入基础的JS和CSS文件 -->
<link href="${ctx}/resources/css/aos/aos_${css}.css" rel="stylesheet" type="text/css"/>

<%@ include file="/common/meta_ext.jsp"%>
	
<script src="${ctx}/resources/js/aos/ext_ux/BasicGrid.js" type="text/javascript"></script>
	
<script type="text/javascript">
	Ext.onReady(function(){
		Ext.QuickTips.init();
   
   		
   		// create the data store
	    var sortStore = new Ext.data.ArrayStore({
	        fields: [
	           {name: 'updator'},
	           {name: 'updateTime'},
	           {name: 'propertyComment'}
	        ]
	    });
	    
	    
	    
		// 列表部分
		var gridStructure = [{  
			name: 'id',
			hidden: true
		},{
			name: 'updator',  
			header: "修改人",
			sortable: true,
			width: 120
		},{  
			name: 'updateTime',  
			header: "修改时间",
			sortable: true,
			width: 100
		},{  
			name: 'propertyComment',  
			header: "修改属性",
			sortable: true,
			width: 120
		},{  
			name: 'oldValue',  
			header: "修改前",
			sortable: true,
			width: 200
		},{  
			name: 'newValue',  
			header: "修改后",
			sortable: true,
			width: 100
		}];
		
		var grid = new Ext.ux.grid.BasicGrid({
			height: 300,
		    title: '审计日志列表',
			region: 'center',
			margins: '0 1 1 1',
			structure: gridStructure,
			url: '${ctx}/syslog/sys-prop-audit-log!getPropAuditLog.action?entity=${entity}&entityId=${entityId}&packageName='+'com.augurit.common.notice.web.form',
			defaultSortField: 'updator',  
			keyField: 'id',
			preload: true
		});
		
		grid.render('propAuditGrid');
	});
</script>
</head>
<body>
	<table class="tb_custom">
		<tr>
			<td class="td_header_l">
				<table width="100%"><tr>
					<th width="5"></th>
					<th width="20"><img src="${ctx}/resources/images/icons/16_16/application_group.png"/></th>
					<th align="left"><strong>字段审计日志</strong></th>
				</tr></table>
			</td>
		</tr>
	</table>
	<div id="propAuditGrid"></div>
</body>
</html>